﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CSharp
{
    class DemoArray
    {
        /// <summary>
        /// Minh họa Rectangular Array
        /// </summary>
        public static void Test1()
        {
            char[,] array = new char[4, 6];

            for (int i = 0; i < array.GetLength(0); i++)
                for (int j = 0; j < array.GetLength(1); j++)
                    array[i, j] = '*';

            // In ra
            for (int i = 0; i < array.GetLength(0); i++)
            {
                for (int j = 0; j < array.GetLength(1); j++)
                    Console.Write(array[i, j]);
                Console.WriteLine();
            }
        }
    }
}

